package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.entity.player.UserBuilding;

import java.util.Map;

public class UserBuildingBussiness {

	public static Map<Integer, UserBuilding> getUserBuildingMap(long userId) {
		return DaoHelper.getUserBuildingDaoImpl().getUserBuildingMap(userId);
	}

	public static boolean addUserBuilding(UserBuilding building) {
		return DaoHelper.getUserBuildingDaoImpl().add(building);
	}

	public static boolean updateUserBuilding(UserBuilding building) {
		return DaoHelper.getUserBuildingDaoImpl().update(building);
	}
}
